var t = getApp();

Component({
    properties: {
        params: {
            type: null
        },
        data: {
            type: null
        }
    },
    data: {
        articles: []
    },
    lifetimes: {
        attached: function() {},
        moved: function() {},
        detached: function() {}
    },
    attached: function() {},
    ready: function() {
        this.getMoreArticle();
    },
    pageLifetimes: {
        show: function() {},
        hide: function() {},
        resize: function() {}
    },
    methods: {
        getMoreArticle: function() {
            var e = this, a = t.getNetAddresss("plugin.article.api.article-page.page");
            a += "&pageSize=" + e.data.params.shownum, t._getNetWork({
                showToastIn: !1,
                url: a,
                success: function(t) {
                    var a = t.data;
                    1 == a.result && e.setData({
                        articles: a.data.data
                    });
                },
                fail: function(t) {}
            });
        },
        gotoArticle: function(t) {
            var e = t.currentTarget.dataset.item;
            wx.navigateTo({
                url: "/packageA/member/article/articleContent/articleContent?article_id=" + e.articleid
            });
        }
    }
});